package com.chatopera.cc.model;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;
import java.util.Set;

@MappedSuperclass
public abstract class BaseEntity extends IdEntity {

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date begintime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endtime;
    private Date createtime;
    private String creater;
    private Date updatetime;
    private String updateuser;
    private Set<String> organSet;
    private String q;

    @Transient
    public String getQ() {
        return q;
    }

    public void setQ(String q) {
        this.q = q;
    }

    @Transient
    public Set<String> getOrganSet() {
        return organSet;
    }

    public void setOrganSet(Set<String> organSet) {
        this.organSet = organSet;
    }

    @Transient
    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    @Transient
    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getUpdateuser() {
        return updateuser;
    }

    public void setUpdateuser(String updateuser) {
        this.updateuser = updateuser;
    }

}
